<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .list{
            width: 30px;
            list-style: none;
            padding: 0;
            margin: 0 auto;
        }
        .list li{
            line-height: 50px;
            border-bottom: 1px dotted black;
        }
    </style>
    <script>
        window.onload = function () {
            var aLists;
            var sTr = '';
            var oUl = document.getElementById('list');
            aLists = ['123', '321', '12345', '123444', '1232', '12'];
            for(var i=0;i<aLists.length;i++){
                sTr += '<li>' + aLists[i] + '</li>';
            }
            // alert(sTr);

            oUl.innerHTML = sTr;

        }



    </script>
</head>

<body>
    <ul class="list" id="list">
<!--        <li>电影</li>-->
<!--        <li>电影</li>-->
<!--        <li>电影</li>-->
<!--        <li>电影</li>-->
<!--        <li>电影</li>-->
<!--        <li>电影</li>-->
    </ul>

</body>
</html>